Types of Databases
Types of Databases (RDBMS vs NoSQL) β Automation Tester Awarenessβ
As an automation tester, you donβt need to master every database type. You must understand which type your application uses and how that affects validation.
Most enterprise applications use Relational Databases (RDBMS). NoSQL knowledge is mainly awareness-level for testers.
High-Level Database Classificationβ
Databases are broadly classified into:
- Relational Databases (RDBMS) β (MOST IMPORTANT)
- Non-Relational Databases (NoSQL) (Awareness)
1οΈβ£ Relational Databases (RDBMS)β
RDBMS store data in tables with rows and columns and enforce relationships using keys.
Examplesβ
- Oracle
- MySQL
- PostgreSQL
- SQL Server
Key Characteristics of RDBMSβ
- Data stored in tables
- Fixed schema (structure)
- Uses SQL
- Supports joins
- Enforces data integrity (PK/FK)
This matches most banking, eβcommerce, enterprise systems.
Why RDBMS is Critical for Automation Testersβ
As a tester, you will:
- Validate UI/API data against DB tables
- Write SELECT queries
- Use joins to verify relationships
- Check transactional data
π 90% of DB validations in automation are on RDBMS
2οΈβ£ Non-Relational Databases (NoSQL) β Awareness Onlyβ
NoSQL databases store data in non-tabular formats.
Common NoSQL Typesβ
| Type | Example |
|---|---|
| Document | MongoDB |
| Key-Value | Redis |
| Column | Cassandra |
| Graph | Neo4j |
How NoSQL Differs from RDBMSβ
| Aspect | RDBMS | NoSQL |
|---|---|---|
| Structure | Tables | Documents / Key-Value |
| Schema | Fixed | Flexible |
| Query Language | SQL | DB-specific |
| Joins | Yes | Limited / None |
| Transactions | Strong | Limited (varies) |
Tester Perspective on NoSQLβ
- Rarely queried directly in UI automation
- Common in:
- Microservices
- Caching layers
- Logs & analytics
Tester role:
- Validate API responses
- Validate business behavior
- DB-level checks usually done by backend tests
How to Identify DB Type in a Projectβ
You can identify DB type by:
- Asking developers
- Checking configuration files
- Observing SQL usage
- Error messages (Oracle / MySQL hints)
Common Tester Mistakes ββ
- Expecting SQL joins in NoSQL
- Treating all databases the same
- Over-learning NoSQL without need
- Writing complex queries without understanding DB type
Key Takeawaysβ
- RDBMS is the primary DB type for automation testing
- SQL knowledge is essential
- NoSQL is awareness-level for most testers
- Always confirm DB type before validation